@model ViewForumModel
		   
@using LastoRevival.Service.Contracts.Models

@{ ViewBag.Title = "Details"; }	
@{ 
	this.AddIndexBreadCrumb();
	this.AddCurrentBreadCrumb(Model.ForumDetails.Title);
}


@if (!Html.IsMobile())
{
	@Html.Partial("ForumDetails", Model)
}

@Html.Partial("WhosOnline", null)
 
@if (Model.CanCreateThread)
{
	@Html.Partial("PostNewButton", Model)
}


@if (Model.Threads.Count() == 0)
{   
	<div id="emptyForum">@LanguageLoader.GetWord("NoMessagesInForumText")</div>
}
else
{	
	@Html.Partial("CollapsibleThreadList", Model.Threads);
	<span class="forumPager" id="bottomFormPager">@Html.Partial("ForumPager")</span>
}

@if (Html.IsMobile())
{
	@Html.Partial("ForumDetails", Model)
}